package ai.people.netmon.framework.domain.reddit.vo;

import ai.people.netmon.framework.businessenum.AnalysisSourceEnum;
import ai.people.netmon.framework.domain.reddit.entity.RedditAccount;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yuanqinglong
 * @date 2022/3/8 15:02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RedditAccountVO {


    public RedditAccountVO(RedditAccount redditAccount){
        id = redditAccount.getUserId();
        avatar = redditAccount.getHeaderImage();
        username = redditAccount.getUserName();
        firstName = redditAccount.getName();
        infoType = AnalysisSourceEnum.reddit.name();
    }


    /**
     * 用户id
     */
    private String id;

    /**
     * 头像
     */
    private String avatar;
    /**
     * 第一个名字
     */
    private String firstName;
    /**
     * 姓
     */
    private String lastName;
    /**
     * 用户名
     */
    private String username;
    /**
     * 电话
     */
    private String phone;
    /**
     * 描述
     */
    private String description;
    /**
     * 标签
     */
    private String tags;

    /**
     * 位置
     */
    private String location;

    /**
     * 组数
     */
    private Integer groupCount = 0;

    /**
     * 信息类型
     * @see ai.people.netmon.framework.businessenum.AnalysisSourceEnum
     */
    private String infoType = AnalysisSourceEnum.reddit.name();




}
